//
//  CommentModel.m
//  CloudWeibo
//
//  Created by CLOUD on 1/3/15.
//  Copyright (c) 2015 Cloud. All rights reserved.
//

#import "CommentModel.h"

@implementation CommentModel

- (void) setAttributes:(NSDictionary *)dataDic
{
    [super setAttributes:dataDic];
    
    NSDictionary *retweetDic = [dataDic objectForKey:@"retweeted_status"];
    if (retweetDic != nil) {
        WeiBoModel *relWeiBo = [[WeiBoModel alloc] initWithDataDic:retweetDic];
        self.weiBo = relWeiBo;
        [relWeiBo release];
    }
    
    
    NSDictionary *userDic = [dataDic objectForKey:@"user"];
    if (userDic != nil) {
        UserModel *user = [[UserModel alloc] initWithDataDic:userDic];
        self.user = user;
        [user release];
    }
    
}



@end
